Skip to content

Conversation

@dmontagu
Copy link
Contributor

This resolves a circular import issue that could be caused by importing certain objects from pydantic-graph (closes #3264).

More generally, pydantic-graph should NOT be depending on pydantic-ai, but it was (accidentally) importing a utility constant from there (ExceptionGroup with backport compatibility for Python 3.10).

This PR just redeclares ExceptionGroup in the relevant module of pydantic-graph.

@dmontagu dmontagu enabled auto-merge (squash) October 27, 2025 21:47
@dmontagu dmontagu merged commit 3a576d1 into main Oct 27, 2025
29 checks passed
@dmontagu dmontagu deleted the dmontagu/fix-graphs-circular-import branch October 27, 2025 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pydantic_graph.beta import fails with circular import error in v1.6.0

3 participants